import {
	computed,
	onMounted,
	onUnmounted,
	reactive,
	ref,
	nextTick,
	toRaw,
	watch,
} from "vue";

import * as util from '@/amtf/utils'

export default function(cfg = {}) {
	const key = "订单"

	// let 源单项组=[]
	function 查() {
		let resa = []
		uni.getStorage({
			key,
			success: function(res) {
				// console.log('缓存 res.data: ', res.data);
				if (res.data) {
					resa = res.data
					// let data = 源单项组
					// // console.log('data: ',data);
					// if (req.仅进行中) {
					// 	data = util.数组过滤(data, "状态", "进行中")
					// }
					// util.数组重予(单项组, data)
				}
			}
		});
		return resa
	}

	return {
		查,
	};

}